package java67_oop3.method2;

public class TestMaker {

	public static void main(String[] args) {
		JuiceMaker jy = new JuiceMaker();
		jy.brand = "九阳";
		jy.price = 499;
		jy.watt = 40;
		//
		String shuiguo = "葡萄";
		String r1 = jy.makeJuice(shuiguo);
		System.out.println("喝到了" + r1);
		String r2 = jy.makeJuice("苹果");
		System.out.println("喝到了" + r2);
		jy.makeJuice("土豆");
		// !!!!!!!!!!!!!!!!!!!!!!!!!
		System.out.println(jy.makeJuice("西红柿"));
//		jy.fruit = "桃子";
//		String r1 = jy.makeJuice();
//		System.out.println("喝到了" + r1);
//		jy.fruit = "葡萄";
//		String r2 = jy.makeJuice();
//		System.out.println("喝到了" + r2);
	}

}
